package com.baoxin.user.service;

import com.baoxin.user.mapper.UserMapper;
import com.baoxin.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService  {

    @Autowired
    private UserMapper userMapper ;


    public User queryById(Long id) {

        return userMapper.selectByPrimaryKey(id);
    }
}
